//
//  BLNetworkListener.h
//  BL
//
//  Created by Benz.L on 16/6/3.
//  Copyright © 2016年 benzii.com All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>

typedef NS_ENUM(NSInteger, NetStatus) {
    None = 0,   // 无网络
    WWAN = 1,  // 蜂窝网
    WiFi = 2   // wifi
};


@interface BLNetworkListener : NSObject///<FlutterPlugin>
@property(nonatomic, assign, readonly) NetStatus status;


- (instancetype)initWithChannel:(FlutterMethodChannel *)channel;
- (void)fetchStatus:(FlutterMethodCall *)call result:(FlutterResult)result;

@end
